import request from '@/utils/request'

// 查询球队加入申请列表
export function listJoinApplications(query) {
  return request({
    url: '/team/joinApplications/list',
    method: 'get',
    params: query
  })
}

// 查询球队加入申请详细
export function getJoinApplications(id) {
  return request({
    url: '/team/joinApplications/' + id,
    method: 'get'
  })
}

// 新增球队加入申请
export function addJoinApplications(data) {
  return request({
    url: '/team/joinApplications',
    method: 'post',
    data: data
  })
}

// 修改球队加入申请
export function updateJoinApplications(data) {
  return request({
    url: '/team/joinApplications',
    method: 'put',
    data: data
  })
}

// 删除球队加入申请
export function delJoinApplications(id) {
  return request({
    url: '/team/joinApplications/' + id,
    method: 'delete'
  })
}
